home *** CD-ROM | disk | FTP | other *** search
/ PCGUIA 2010 Software/Programs / PCGuia_programas.iso / Software / Internet / FeedDemon / FeedDemonInstall.exe / {app} / Data / poptopicsexport.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2009-01-04  |  4.1 KB  |  123 lines

  1. <?xml version="1.0"?>
  2.  
  3. <xsl:stylesheet version="1.0"
  4.     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  5.     xmlns:fd="http://www.bradsoft.com/feeddemon/xmlns/1.0/">
  6.  
  7. <xsl:output method="html"
  8.     doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
  9.     doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
  10.  
  11. <xsl:template match="links">
  12. <html>
  13. <head>
  14.     <title>$LANG_CONST(S_MemeRptTitle)$</title>
  15.     <style type="text/css">
  16.         body {
  17.             width: 100%;
  18.             height: 100%;
  19.             font-size: $FONT-SIZE-NEWSPAPER$;
  20.             font-family: "$FONT-NAME-NEWSPAPER$", "Segoe UI", "Trebuchet MS", Tahoma, Verdana, sans-serif;
  21.             line-height: 1.6em;
  22.             margin: 0;
  23.             color: #1F1F1F;
  24.             background-color: white;
  25.         }
  26.         div#newspapertitle {
  27.             font-weight: bold;
  28.             font-size: large;    
  29.             height: 26px;
  30.             overflow: hidden;
  31.             text-overflow: ellipsis;
  32.         }
  33.         #pagehead { 
  34.             padding: 0px 12px;
  35.             padding-top: 8px; 
  36.             height: 32px;
  37.             width: 100%; 
  38.             color: $COLOR-PAGEHEAD-FONT$;
  39.             background-color: $COLOR-PAGEHEAD2$;
  40.             border-bottom: 1px solid $COLOR-PAGEHEAD2$;
  41.             filter: progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=$COLOR-PAGEHEAD2$,endColorStr=$COLOR-PAGEHEAD1$);
  42.         }
  43.         #container { margin: 22px 24px; margin-right: 16px; }
  44.         img.fdpostimg {
  45.             float: right;
  46.             width: 100px;
  47.             max-height: 100px;
  48.             margin-left: 10px;
  49.             margin-bottom: 6px;
  50.         }
  51.  
  52.         a { color: $COLOR-HYPERLINK$; text-decoration: none; }
  53.         a:hover { color: $COLOR-HYPERLINK-HOVER$; text-decoration: underline; }
  54.         a.posttitle { color: black; text-decoration: underline; }
  55.  
  56.         div.excerpt { margin-top: 14px; margin-bottom: 14px; margin-right: 18px; }
  57.         div.linkpost {
  58.             padding-bottom: 22px; 
  59.             padding-right: 10px;
  60.             margin-bottom: 22px;
  61.             border-bottom: 1px dotted $COLOR-GROUP-HEADER-BORDER$;
  62.             min-height: 100px;
  63.         }
  64.  
  65.         .linktitle { font-weight: bold; font-size: 104%; display: inline; }
  66.         .linktitle a { text-decoration: underline; color: black; }
  67.  
  68.         span.dateline { margin-right: 6px; }
  69.         span.postdate { color: gray; }
  70.         span.sep { color: silver; margin: 0 4px; }
  71.  
  72.         a.feedtitle { font-size: 90%; font-weight: normal; text-decoration: none; }
  73.     </style>
  74. </head>
  75. <body>
  76.     <div id="pagehead">        
  77.         <div id="newspapertitle">$LANG_CONST(APP_NAME)$ $LANG_CONST(S_MemeRptTitle)$</div>
  78.     </div>
  79.  
  80.     <div id="container">
  81.         <xsl:for-each select="link">
  82.             <xsl:sort select="@numPosts" order="descending" data-type="number"/>
  83.             <xsl:variable name="link-image-url" select="@imageUrl"/>
  84.             
  85.             <div class="linkpost">
  86.                 <xsl:for-each select="post">
  87.                     <xsl:sort select="@sortIndex" data-type="number"/>
  88.                     <xsl:sort select="@feedTitle" data-type="text"/>
  89.                     
  90.                     <xsl:variable name="post-num"><xsl:value-of select="position()"/></xsl:variable>
  91.                     <xsl:variable name="post-link"><xsl:value-of select="@postUrl"/></xsl:variable>
  92.                     <xsl:variable name="feed-link"><xsl:value-of select="@feedUrl"/></xsl:variable>
  93.                     <xsl:variable name="post-excerpt"><xsl:value-of select="." disable-output-escaping="no"/></xsl:variable>
  94.  
  95.                     <xsl:choose>
  96.                         <xsl:when test="$post-num=1">                            
  97.                             <div class="linktitle">
  98.                                 <a href="{$post-link}"><xsl:value-of select="@title"/></a>
  99.                             </div>
  100.                             <div class="excerpt">
  101.                                 <xsl:if test="$link-image-url"><img class="fdpostimg" src="{$link-image-url}"/></xsl:if>
  102.                                 <span class="dateline"><a class="feedtitle" href="{$feed-link}"><xsl:value-of select="@feedTitle"/></a> <span class="postdate"><xsl:value-of select="@dateDisplay"/></span>:</span>
  103.                                 <xsl:value-of select="$post-excerpt"/>
  104.                             </div>
  105.                         </xsl:when>
  106.                         <xsl:otherwise>
  107.                             <div class="post">
  108.                                 <a class="feedtitle" href="{$feed-link}"> <xsl:value-of select="@feedTitle"/></a>
  109.                                 <span class="sep">/</span>
  110.                                 <a class="posttitle" href="{$post-link}" title="{$post-excerpt}"><xsl:value-of select="@title" disable-output-escaping="yes"/></a>
  111.                             </div>
  112.                         </xsl:otherwise>
  113.                     </xsl:choose>
  114.                     
  115.                 </xsl:for-each>
  116.             </div>
  117.         </xsl:for-each>
  118.     </div>
  119. </body>
  120. </html>
  121. </xsl:template>
  122.  
  123. </xsl:stylesheet>